package com.gqc.dao;

import com.gqc.bean.Order;
import com.gqc.bean.OrderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OrderMapper {
    long countByExample(OrderExample example);

    int deleteByExample(OrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    List<Order> selectByExample(OrderExample example);

    Order selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByExample(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
    //商家查询订单
     List<Order> findOrderByBusiness(int id);
    //送货
     void sendFood(int id);
    //接受订单
     void getOrder(int id);
    //客户查询订单
     List<Order> findOrderByUser(int id);
}